<div id="banner" class="carousel slide" data-ride="carousel">
    <!-- Indicators -->
    <ol class="carousel-indicators">
        <foreach name="list.banner_ad" item="l" key="k" >
            <li data-target="#banner" data-slide-to="0" style="margin-left: 4px"></li>
        </foreach>
    </ol>
    <!-- 轮播图片 -->
    <div class="carousel-inner lunbo" role="listbox">
        <foreach name="list.banner_ad" item="l" key="k" >
            <div class="item">
                <a target="_blank" href="{$l.url}"><img src="/{$l.thumb|_strpos}"/></a>
            </div>
        </foreach>
    </div>
    <!-- 按钮 -->
    <a class="left carousel-control" href="#banner" role="button" data-slide="prev">
        <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
        <span class="sr-only">Previous</span>
    </a>
    <a class="right carousel-control" href="#banner" role="button" data-slide="next">
        <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
        <span class="sr-only">Next</span>
    </a>
</div>